<script language="JavaScript"><!--
// Checks the passwords have been entered correctly
function CheckForm()
   {
   var str = document.forms[0].elements[1].value;
   var str2 = document.forms[0].elements[2].value;
   var str3 = document.forms[0].elements[0].value;
   if (str3 == "")
      {
      alert("{L_OLD_PASSWORD_MISSING}")
      document.forms[0].elements[0].select();
      document.forms[0].elements[0].focus();
      return false;
      }
   if (str == "")
      {
      alert("{L_NEW_PASSWORD_MISSING}")
      document.forms[0].elements[1].select();
      document.forms[0].elements[1].focus();
      return false;
      }
   if (str.length < 5)
      {
      alert("{L_NEW_PASSWORD_SHORT}")
      document.forms[0].elements[1].select();
      document.forms[0].elements[1].focus();
      return false;
      }
   if (str.length > 128)
      {
      alert("{L_NEW_PASSWORD_LONG}")
      document.forms[0].elements[1].select();
      document.forms[0].elements[1].focus();
      return false;
      }
   if (str != str2)
      {
      alert("{L_PASSWORD_LENGTH_MISMATCH}")
      document.forms[0].elements[1].select();
      document.forms[0].elements[1].focus();
      return false;
      }
   return true;
}

// --></script>

<div id="navigation">
	<a href="{U_HOME}">{DOMAIN} {L_CPANEL_INDEX}</a> ::
	{L_CHANGE_PASSWORD}
</div><br />

{L_CHANGE_PASSWORD_DESCRIPTION}<br /><br />


<form action="{S_ACTION}" method="{S_METHOD}" onsubmit="return CheckForm()">
<table width=50% align="center">
<tr>
	<td width="50%" align="right">{L_OLD_PASSWORD}:</td>
	<td width="50%"><input maxLength="128" name="oldpass" size="16" type="password"></td>
</tr>

<tr>
	<td align="right">{L_NEW_PASSWORD}:</td>
	<td><input maxLength="128" name="newpass" size="16" type="password"></td>
</tr>
<tr>
	<td align="right">{L_NEW_PASSWORD_AGAIN}:</td>
	<td><input maxLength="128" size="16" type="password"></td>
</tr>
<tr>
	<td colspan=2 align=center><input name="B1" type="submit" value="{L_CHANGE_PASSWORD}"></td>
</tr>
</table>
</form>

<br />

<div class=row2 align=center>
<b>{L_KEEP_IT_SECURE}</b>
</div>
{L_PASSWORD_DO}<br /><br />

<div class=row2 align=center>
<b>{L_PASSWORD_GOOD}</b>
</div>

{L_PASSWORD_DONT}<br /><br />

{L_PASSWORD_INSTEAD}<br /><br />


<cpanel include="../overall_footer.html">